package com.blb.community.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.blb.community.entity.ZyCommunity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.community.entity.vo.CommunityAreaVO;
import com.blb.community.entity.vo.CommunityVO;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 小区  Mapper 接口
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Component
public interface ZyCommunityMapper extends BaseMapper<ZyCommunity> {

    /**
     * 分页查询小区
     *
     * @param communityVO
     * @param page
     * @return
     */
    IPage<CommunityVO> getCommunity(CommunityVO communityVO, IPage<CommunityVO> page);
    /**
     * 分页查询小区
     *
     * @param communityAreaVO
     * @param page
     * @return
     */
    IPage<CommunityAreaVO> getCommunityArea(CommunityAreaVO communityAreaVO,IPage<CommunityAreaVO> page);

    /**
     * 小区添加
     * @param communityAreaVO
     */
//    void addCommunity(CommunityAreaVO communityAreaVO);
    /**
     * 小区修改
     * @param
     */
//    void updateCommunity(CommunityAreaVO communityAreaVO);

    void updateDeptId(Long communityId,Long deptId);
}
